package com.love.common.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * TODO description
 *
 * 参考：https://blog.csdn.net/weixin_43709538/article/details/109480460
 *
 * @author sunbo
 * @date 2021/5/12 下午5:16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User extends Model<User> {

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @TableField(exist = false)
    private String membership;

}
